'''列表的基本操作'''
#创建空列表
L = []
L = list()
#创建非空列表
L = [1,2,3,4]
L = ["北京","上海","南京"]
L = [1,"two",False]
L = [1,2,3,[4,5,6,7],8]
#使用list，参数是一个可迭代对象
L = list("abcdefg")
L = list(range(10))#（0，2，3...9），
L = list(range(2,10))#（2，3，4...9）
L = list(range(1,10,2))#（1，3，5...9）start end step
#列表的”算术“运算  拼接
#+  +=  *  *=
L1 = [1,2,3]
L2 = [4,5,6]
L3 = L1+L2
print(L3)

L3 = L1 * 3
print(L3)
#列表的”比较“运算 > < >= <= == !=
L1 = [1,2,3]
L2 = [2,3,4]
print(L1>L2)#False
["AB","CD"] > ["AC","BD"]
[1,"two"] > ["two",1]



